package com.jack.oopTest;

public class CEO extends Employee {
    private int allowance;

    public int getAllowance() {
        return allowance;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("交通补助："+allowance);
    }

    public CEO(int allowance) {
        this.allowance = allowance;
    }

    public CEO(String name, String address, float salary, int allowance) {
        super(name, address, salary);
        this.allowance = allowance;
    }

    public void setAllowance(int allowance) {
        this.allowance = allowance;
    }
}
